<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <title>面向对象-静态方法</title>
</head>

<script>
    function Hashiqi(){
        this.bark = function () {
            alert("wuwu")
        }
    }


    Hashiqi.ajax = function(){
        alert("ajax")
    }


    var h = new Hashiqi();

    console.log("------"+ h.ajax()) // ajax不是h的方法，是hashiqi 的静态方法
</script>
<body>

</body>
</html>

